package jp.co.cos.ittrick.channel.controller.admin;

import jp.co.cos.ittrick.channel.model.ChannelModel;
import jp.co.cos.ittrick.channel.service.ChannelService;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

/**
 * カテゴリ・Class リスト
 * @author takahara
 *
 */
public class ChannelController extends Controller {

    private ChannelService channelService;

    public ChannelController() {
        channelService = new ChannelService();
    }

    @Override
    public Navigation run() throws Exception {

        String channel = asString("channel");
        ChannelModel channelModel = channelService.getChannelByKey(channel);
        requestScope("channela", channelModel);

        return forward("channel.jsp");
    }
}
